package com.edu.admin.entity;


import java.util.List;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

import com.edu.admin.common.BaseEntity;

/**
 * 学校表实体
 * 
 * @author Wangjiong
 * 
 */


@Table(name="sys_school")
public class SysSchool  extends BaseEntity{ 
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -7568045930631580067L;
	/**
	 * 学校id
	 * 
	 */
	@Id
	@GeneratedValue(generator = "JDBC")
	private Long schoolId;
	/**
	 * 学校名称
	 * 
	 */
	@NotBlank(message = "学校名称不能为空")
	private String schoolName;
	/**
	 * 学校简称
	 * 
	 */
	private String shortName;
	/**
	 * 省份Code
	 * 
	 */
	@Min(value = 1, message = "省份不能为空") 
	private String provinceCode;
	/**
	 * 城市Code
	 * 
	 */
	@Min(value = 1, message = "地市不能为空") 
	private String cityCode;
	/**
	 * 区县Code
	 * 
	 */
	@Min(value = 1, message = "区县不能为空") 
	private String districtCode;
	/**
	 * 地址
	 * 
	 */
	private String address;
	/**
	 * 主页地址
	 * 
	 */
	private String homepageUrl;
	/**
	 * Logo
	 * 
	 */
	private String logo;
	/**
	 * 简介
	 * 
	 */
	private String descript;
	/**
	 * 班级数量
	 * 
	 */
	private Integer classesNum;
	/**
	 * 教师数量
	 * 
	 */
	private Integer teacherNum;
	/**
	 * 学生数量
	 * 
	 */
	private Integer studentNum;
	/**
	 * 是否使用
	 * 
	 */
	private Integer useType;
	
	@Transient
	private List<SysSchoolPhase> schoolPhaseList;
	
	@Transient
	private Long[] phases;

	public Long getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Long schoolId) {
		this.schoolId = schoolId;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCityCode() {
		return this.cityCode;
	}

	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	public Integer getClassesNum() {
		return this.classesNum;
	}

	public void setClassesNum(Integer classesNum) {
		this.classesNum = classesNum;
	}
	
	public Integer getTeacherNum() {
		return teacherNum;
	}

	public void setTeacherNum(Integer teacherNum) {
		this.teacherNum = teacherNum;
	}

	public Integer getStudentNum() {
		return studentNum;
	}

	public void setStudentNum(Integer studentNum) {
		this.studentNum = studentNum;
	}

	public String getDescript() {
		return this.descript;
	}

	public void setDescript(String descript) {
		this.descript = descript;
	}

	public String getDistrictCode() {
		return this.districtCode;
	}

	public void setDistrictCode(String districtCode) {
		this.districtCode = districtCode;
	}

	public String getHomepageUrl() {
		return this.homepageUrl;
	}

	public void setHomepageUrl(String homepageUrl) {
		this.homepageUrl = homepageUrl;
	}

	public String getLogo() {
		return this.logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getProvinceCode() {
		return this.provinceCode;
	}

	public void setProvinceCode(String provinceCode) {
		this.provinceCode = provinceCode;
	}

	public String getShortName() {
		return this.shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public Integer getUseType() {
		return this.useType;
	}

	public void setUseType(Integer useType) {
		this.useType = useType;
	}

	public List<SysSchoolPhase> getSchoolPhaseList() {
		return schoolPhaseList;
	}

	public void setSchoolPhaseList(List<SysSchoolPhase> schoolPhaseList) {
		this.schoolPhaseList = schoolPhaseList;
	}

	public Long[] getPhases() {
		return phases;
	}

	public void setPhases(Long[] phases) {
		this.phases = phases;
	}
	
	

}
